package com.subaiqiao.yunshiyuan.basis.exception;

public class BusinessException extends RuntimeException{
    private String errorCode;

    public BusinessException(String errorCode, String errorMsg, Throwable exce) {
        super(errorMsg, exce);
        this.errorCode = errorCode;
    }

    public BusinessException(String errorMsg, Throwable exce) {
        super(errorMsg, exce);
    }

    public BusinessException(Throwable exce) {
        super(exce);
    }

    public BusinessException(String errorMsg) {
        super(errorMsg);
    }

    public BusinessException(String errorCode, String errorMsg) {
        super(errorMsg);
        this.errorCode = errorCode;
    }

    public String getErrorCode() {
        return this.errorCode;
    }

    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }
}
